package model;

import java.util.Date;

import web.annotation.Entity;
import web.annotation.Key;

@Entity
public class Product {
	@Key
	private Integer id;
	private String productName;
	private String productCode;
	private Double salePrice;
	private Double originalPrice;
	private String pictrueUrl;
	private String statu;
	private Date createTime;
	private Date modifyTime;
	private String description;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public String getProductCode() {
		return productCode;
	}
	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	public Double getSalePrice() {
		return salePrice;
	}
	public void setSalePrice(Double salePrice) {
		this.salePrice = salePrice;
	}
	public Double getOriginalPrice() {
		return originalPrice;
	}
	public void setOriginalPrice(Double originalPrice) {
		this.originalPrice = originalPrice;
	}
	public String getPictrueUrl() {
		return pictrueUrl;
	}
	public void setPictrueUrl(String pictrueUrl) {
		this.pictrueUrl = pictrueUrl;
	}
	public String getStatu() {
		return statu;
	}
	public void setStatu(String statu) {
		this.statu = statu;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	@Override
	public String toString() {
		return "Product [id=" + id + ", productName=" + productName + ", productCode=" + productCode + ", salePrice="
				+ salePrice + ", originalPrice=" + originalPrice + ", pictrueUrl=" + pictrueUrl + ", statu=" + statu
				+ ", createTime=" + createTime + ", modifyTime=" + modifyTime + ", description=" + description + "]";
	}
	
	
}
